<!DOCTYPE html>
<html lang="zh-cn" style="height:100%;">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>PAC首页</title>
    <link rel="stylesheet" href="https://unpkg.com/mobi.css/dist/mobi.min.css">
</head>
<body style="height:100%; background-image: url(/static/img/wizard-book.jpg);">
<div class="flex-center" >
    <div class="container">
        <div style="margin-top: 150px;">
            <h1 class="logo"><a href="{% url 'index' %}" style="color: #f44336;font-size: 100px;">PAC</a></h1>
            {% if user.is_authenticated %}
                <p>你已登录PAC，欢迎你：<a href="#">{{ user.username }}</a></p>
                <button class="btn btn-default"><a href="{% url 'logout' %}?next={{ request.path }}">注销登录</a></button>
                <button class="btn btn-default"><a href="{% url 'password_change' %}?next={{ request.path }}">修改密码</a></button>
            {% else %}
                <b>
                    <p style="color: #ff8800;">你还没有登录，请
                        <button class="btn btn-default"><a href="{% url 'login' %}?next={{ request.path }}">登录</a></button>
                        或者
                        <button class="btn btn-default"><a href="{% url 'users:register' %}?next={{ request.path }}">注册</a></button>
                    </p>
                </b>
            {% endif %}

        </div>
    </div>
</div>
</body>
    <script src="/static/js/jquery-2.2.4.min.js" type="text/javascript"></script>
    <script src="/static/js/util.js"></script>
</html>